package com.naiterui.ehp.bs.esign.service;

import java.util.Date;

import com.naiterui.ehp.bs.esign.api.bjca.vo.SignFileUploadVO;
import com.naiterui.ehp.bs.esign.entity.mysql.EsignNoSecret;

/**
 * 免密签名
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/4/28 18:12
 **/
public interface INoSecretService {

    /**
     * 保存免签记录
     *
     * @param signUserId   签名用户id
     * @param signUserType 签名用户类型
     * @return /
     */
    EsignNoSecret saveEsignNoSecret(Long signUserId, Integer signUserType);

    /**
     * 获取签名文件信息
     *
     * @param userId       签名用户id
     * @param bizSn        业务编码
     * @param pdfPath      签名文件地址
     * @param signUserType 签名用户类型
     * @param x            x坐标
     * @param y            y坐标
     * @param createAt     单据创建时间
     * @return /
     */
    SignFileUploadVO getSignFileUploadVO(Long userId, String bizSn, String pdfPath, String signUserType, Float x, Float y, Date createAt);

    /**
     * 获取免签记录唯一标识
     * 
     * @param signUserId
     *            签名用户id
     * @param signUserType
     *            签名用户类型
     * @return
     */
    String getNoSecretBizSn(Long signUserId, Integer signUserType);
}
